package cuiyt.designpattern.observer.v2.event;

import cuiyt.designpattern.observer.v2.observer.SchoolEvent;
import cuiyt.designpattern.observer.v2.vo.Event;
import lombok.Data;

@Data
public class DiningChangeEvent implements SchoolEvent {
    private Event eventType;

    public DiningChangeEvent(Event eventType) {
        this.eventType = eventType;
    }

    @Override
    public Event event() {
        return this.eventType;
    }
}
